<template>
	<view>
		<uni-grid :column="2" :showBorder="false" :square="false">
			<uni-grid-item class="lisitem">
				<image class="img" src="../../static/img/num1.jpeg" mode=""></image>
				<view class="text">评论啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦</view>
				<view class="bottom">
					<image class="head" src="../../static/img/num2.jpeg" mode=""></image>
					<view class="name">蜘蛛侠</view>
					<uni-icons class="icons" type="heart" size="17"></uni-icons>
					<view class="sum">6</view>
				</view>
			</uni-grid-item>
			<uni-grid-item class="lisitem">
				<image class="img" src="../../static/img/num1.jpeg" mode=""></image>
				<view class="text">评论啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦</view>
				<view class="bottom">
					<image class="head" src="../../static/img/num2.jpeg" mode=""></image>
					<view class="name">蜘蛛侠</view>
					<uni-icons class="icons" type="heart" size="17"></uni-icons>
					<view class="sum">6</view>
				</view>
			</uni-grid-item>
		</uni-grid>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.lisitem {
		background: #ffffff;
		width: 48%;
		margin: 0 1% 16rpx 1%;
		border-radius: 10rpx;

		.bottom {
			display: flex;
			margin: 0 10rpx 10rpx 10rpx;

			.name {
				width: 58%;
				color: #737373;
				margin-left: 10rpx;
				margin-top: 8rpx;
			}

			.head {
				width: 60rpx;
				height: 60rpx;
				border-radius: 50%;
			}

			.icons {
				margin-top: 10rpx;
			}

			.sum {
				font-size: 26rpx;
				margin-top: 10rpx;
			}
		}

		.img {
			width: 96%;
			height: 350rpx;
			border-radius: 10rpx;
		}

		.text {
			font-size: 28rpx;
			margin: 10rpx;
			padding: 0 6rpx 0 2rpx;
			overflow: hidden; //超出部分隐藏
			text-overflow: ellipsis; //文字隐藏部分显示省略号
			display: -webkit-box; //改变盒子模型
			-webkit-line-clamp: 2; //文字显示几行
			-webkit-box-orient: vertical;
		}
	}
</style>
